@extends('layouts.layout')
@section('content')


    <div class="header">
        @include('layouts.count')

        <h1 class="page-title">报名管理</h1>
        <ul class="breadcrumb">
            <li  class="active">企业活动报名 </li>
        </ul>

    </div>
    {{--<div class="btn-toolbar list-toolbar">--}}
        {{--<a class="btn btn-primary" href="{{url('user/create')}}"><i class="fa fa-plus"></i> New User</a>--}}
        {{--<button class="btn btn-default">Import</button>--}}
        {{--<button class="btn btn-default">Export</button>--}}
        {{--<div class="btn-group">--}}
        {{--</div>--}}
    {{--</div>--}}

    <div class="btn-toolbar list-toolbar">

        <form action="{{url('participate')}}" method="get">
            {{csrf_field()}}
            <label>标题：</label>
            <input type="text" name="name"  >

            <button class="btn-default"  type="submit">搜索</button>

        </form>
    </div>



    <table class="table table-bordered table-striped">
        <thead>
        <tr>
            <th>序号</th>
            <th>活动主题</th>
            <th>主讲人</th>
            <th>活动目的</th>
            <th>承办单位</th>
            <th>时间</th>
            <th style="width: 10em;">操作</th>
        </tr>
        </thead>
        <tbody>
        @foreach($enterprise as $k=>$v)
            <tr>
                <td>{{$v['id']}}</td>
                <td>{{$v['topic']}}</td>
                <td>{{$v['cheif']}}</td>
                <td>{{$v['purpose']}}</td>
                <td>{{$v['unit']}}</td>
                <td>{{$v->date}}</td>
                <td>
                    <a title="详情" href="{{url('participate/'.$v['id'])}}" style="margin-right: 5px; "><i class="fa fa-home"></i></a></td>
            </tr>

        @endforeach

        </tbody>
    </table>
    {{--分页--}}
    {{$enterprise->links()}}






    </div>
@stop